package com.fjh.springboot_01.service;

import com.fjh.springboot_01.pojo.homework.MistakeBook;
import java.util.List;
import java.util.Map;

public interface MistakeBookService {
    void addMistake(MistakeBook mistakeBook);
    List<MistakeBook> getStudentMistakes(Integer studentId);
    void updateMistake(MistakeBook mistakeBook);
    MistakeBook findByStudentAndQuestion(Integer studentId, Integer questionId);
    void deleteMistake(Integer mistakeId);
    void updateRetryCount(Integer mistakeId, boolean isCorrect);
    
    // 获取知识点统计
    List<Map<String, Object>> getKnowledgeStats(Integer studentId);
} 